package tech.aistar.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2019/10/8.
 */
public class Post implements Serializable{
    private Integer postId;
    private Integer themeId;
    private Integer classId;
    private String postContent;
    private Integer pointNum;
    private Integer visitNum;
    private Integer userId;
    private Integer status;
    private String title;
    private Date ptime;

    private UserInfo userInfo;


    public Post() {
    }

    public Post(Integer postId, Integer themeId, Integer classId, String postContent, Integer pointNum, Integer visitNum, Integer userId, Integer status, String title, Date ptime, UserInfo userInfo) {
        this.postId = postId;
        this.themeId = themeId;
        this.classId = classId;
        this.postContent = postContent;
        this.pointNum = pointNum;
        this.visitNum = visitNum;
        this.userId = userId;
        this.status = status;
        this.title = title;
        this.ptime = ptime;
        this.userInfo = userInfo;
    }

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public Integer getThemeId() {
        return themeId;
    }

    public void setThemeId(Integer themeId) {
        this.themeId = themeId;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getPostContent() {
        return postContent;
    }

    public void setPostContent(String postContent) {
        this.postContent = postContent;
    }

    public Integer getPointNum() {
        return pointNum;
    }

    public void setPointNum(Integer pointNum) {
        this.pointNum = pointNum;
    }

    public Integer getVisitNum() {
        return visitNum;
    }

    public void setVisitNum(Integer visitNum) {
        this.visitNum = visitNum;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getPtime() {
        return ptime;
    }

    public void setPtime(Date ptime) {
        this.ptime = ptime;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Post{");
        sb.append("postId=").append(postId);
        sb.append(", themeId=").append(themeId);
        sb.append(", classId=").append(classId);
        sb.append(", postContent='").append(postContent).append('\'');
        sb.append(", pointNum=").append(pointNum);
        sb.append(", visitNum=").append(visitNum);
        sb.append(", userId=").append(userId);
        sb.append(", status=").append(status);
        sb.append(", title='").append(title).append('\'');
        sb.append(", ptime=").append(ptime);
        sb.append(", userInfo=").append(userInfo);
        sb.append('}');
        return sb.toString();
    }
}
